home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3483 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  886 b 

  1. Path: newsxfer.itd.umich.edu!caen!not-for-mail
  2. From: elpalmer@kecomp.coldwater.mi.us (Eric L. Palmer)
  3. Newsgroups: comp.lang.c
  4. Subject: Wanted: routine to compare file time
  5. Date: 29 Jan 1996 08:41:46 GMT
  6. Organization: U of M
  7. Message-ID: <4ei18a$4pr@srvr1.engin.umich.edu>
  8. NNTP-Posting-Host: elpalmer@rep00498.reshall.umich.edu
  9. X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]
  10.  
  11. I would like a C routine to compare the time a file was last accessed
  12. to the current time, to check, for example, if a file is more than X
  13. time_units old.  I don't have any problems getting the current time,
  14. but I can't seem to properly get the file time with stat().
  15.  
  16. Thanks,
  17.  
  18.  - Eric
  19.  
  20. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  21. Eric L. Palmer         | elpalmer@umich.edu,  elpalmer@kecomp.coldwater.mi.us
  22. U of M Computer Engin. | http://www-personal.engin.umich.edu/~elpalmer/
  23.